//---------------------------------------------------------------------------
function Table(id)
{
	this.setNormalHover = function(start) {
		var t = $(id);
		if (t != null) {
			var i, r = t.rows;
			if (typeof(start) == undefined) start = 0;
			for (i = r.length - 1; i >= start; i--) {
				r[i].onmouseover = new Function("this.className = 'active'");
				r[i].onmouseout = new Function("this.className = '"+r[i].className+"'");
			}
		}
	}

	this.setSelectiveHover = function(start, classes) {
		var t = $(id);
		if (t != null) {
			var sels = [];
			var i, r = t.rows;
			for (i in classes) sels[classes[i]] = true;
			for (i = r.length - 1; i >= start; i--)
				if (sels[r[i].className]) {
					r[i].onmouseover = new Function("this.className = 'active'");
					r[i].onmouseout = new Function("this.className = '"+r[i].className+"'");
				}
		}
	}

	return this;
}
//---------------------------------------------------------------------------
